package com.linzm.j2eetype.businessdelegate02;

import com.linzm.j2eetype.businessdelegate02.business.BusinessService;
import com.linzm.j2eetype.businessdelegate02.business.EJBService;
import com.linzm.j2eetype.businessdelegate02.business.JMSService;

/**
 * @Author zimingl
 * @Date 2023/4/16 15:10
 * @Description: BusinessLookUp
 */
public class BusinessLookUp {
    public BusinessService getBusinessService(String serviceType) {
        if (serviceType.equalsIgnoreCase("EJB")) {
            return new EJBService();
        } else {
            return new JMSService();
        }
    }
}
